﻿using System;
//
namespace PerceptiveMCAPI.Types
{
   public class apikeysResults
   {
      public string apikey { get; set; }
      public DateTime created_at { get; set; }
      public DateTime expired_at { get; set; }

      public apikeysResults()
      {
         created_at = DateTime.MinValue;
         expired_at = DateTime.MinValue;
      }

      public override string ToString()
      {
         string expdate = expired_at == DateTime.MinValue ? "" : expired_at.ToString();
         return string.Format( "apikey: {0}, created_at: {1}, expired_at: {2}",
            apikey, created_at, expdate );
      }
   }
}
